package GameEngine.Drawables.Levels;

import java.util.ArrayList;
import java.util.Iterator;

public class Level extends ArrayList<Layer>{
	private static final int MAX_UMBER_LAYERS = 3;
	private int last = 0;

	public void addLayer(Layer l) {
		if (last < MAX_UMBER_LAYERS) {
			super.add(l);
		}
	}
	
	public Layer getLayer(int idx) {
		return super.get(idx);
	}

	public void draw() {		
		for (Layer l: this) {
			l.draw();
		}
	}
}
